home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 24
/
Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso
/
Aminet
/
util
/
shell
/
Exp13.lha
/
Exp13
/
Docs
/
English
/
EXP13.doc
next >
Wrap
Text File
|
1998-01-12
|
3KB
|
97 lines
Installation
------------
The installation is very simple, is sufficient to copy the file "EXP13" into the
directory C:, or into any congenial directory. The program start from shell.
The documentation you can copy her into any directory which you have doc.
The request minimun of the program is the version 2.0 or above of the WorkBench.
EX.: Copy EXP13/EXP13 C:
Synopsys
--------
Now which you see before you eye the shell, you digit the name of the program and
press Return, or the name followed the ? and you have the main information of the
program. The synopsys possible is:
NOBIN = Don't printf the value binary of the result;
NOHEX = Don't printf the value exadecimal of the reuslt;
Expression = Any algebraic expression;
EX.: EXP13 NOBIN 4+(5*2)
Main function of the program
----------------------------
This program is FreeWare.
This program identify anf interpret expression and print all the passage relative the
expression.
The result is printed in 3 format: Decimal, Binary and Exadecimal.
You can insert number Decimal, Binary and Exadecimal maybe only a 32 bit integers.
The binary is interpreted from % followed of the binary number.
The exadecimal is interpreted from $ followed of the exadecimal number.
The floating point don't admited.
The programopertae on well 17 operator with the followed priority:
Priority Operator
Bracket ( )
High (POW,^) (~,!,NOT) EXP
* / (%,R)
+ -
< > <= >=
!= ==
Low (&,AND) (|,OR) (X,XOR)
Every operator have more of one way to be used. The program accept the space into any
way. The bracket change the priority of the expression naturally the operator with
the highest priority is resolved before the others.
The program signal error if the expression is wrong.
Error
-----
The program create the followed error code:
Error The number must be inserted:
Immission decimal not correct (0,1,2,3,4,5,6,7,8,9,)
Immission binary not correct (0,1)
Immission exadecimal not correct (0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F)
The number is too large (Highest of 32 bit)
Division by zero (For...)
Missing Bracket opened (More Bracket Closed)
Missing Bracket closed (More Bracket Opened)
Operator
---------
( ) Change the priority
(POW,^) Multiply for the same number. EX.: 2POW3 (2*2*2) = 8
(~,!,NOT) Logical NOT. EX.: ~3 = -4
EXP Exponenzial, add zero's. EX.: 2EXP3 = 2000
* Multiply. EX.: 2*4 = 8
/ Division. EX.: 4/2 = 2
(%,R) Rest. EX.: 4%3 = 1
+ Add. EX.: 2+4 = 6
- Subtract. EX.: 4-5 = -1
< Lower of. EX.: 4<5 = 1(True)
> Highest of. EX.: 4>5 = 0(False)
<= Lower or same at. EX.: 4<=4 = 1(True)
>= Highest or same at. EX.: 4>=5 = 0(False)
== Same. EX.: 4==2 = 0(False)
!= Not same. EX.: 4!=2 = 1(True)
(&,AND) Logocal AND. EX.: 4&2 = 0
(|,OR) Logical OR. EX.: 4|2 = 6
(X,XOR) Logical XOR. EX.: 4X2 = 6
Information
-----------
For any bug, information or only for speak write to:
Dattola Filippo
via Fiaccacollo 4
Sasso Marconi, 40037
Bologna, Italy